<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>std.thread</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "std.thread";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/std.thread.html" class="symbol">std.thread</a></h1>
  
<div class="summary">The thread module defines the class <b>Thread</b>.</div>
<b>Thread</b> is the basis
 for writing multithreaded applications. Each thread
 has a unique instance of class <b>Thread</b> associated with it.
 It is important to use the <b>Thread</b> class to create and manage
 threads as the garbage collector needs to know about all the threads.
<dl>
<dt class="decl">alias uint <a class="symbol _alias" name="pthread_t" href="./htmlsrc/std.thread.html#L536" kind="alias" beg="536" end="536">pthread_t</a>; <a title="Permalink to this symbol" href="#pthread_t" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L536">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">alias void (*__sighandler_t)(int) <a class="symbol _alias" name="__sighandler_t" href="./htmlsrc/std.thread.html#L537" kind="alias" beg="537" end="537">__sighandler_t</a>; <a title="Permalink to this symbol" href="#__sighandler_t" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L537">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">struct <a class="symbol _struct" name="sigset_t" href="./htmlsrc/std.thread.html#L539" kind="struct" beg="539" end="542">sigset_t</a>; <a title="Permalink to this symbol" href="#sigset_t" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L539">#</a></dt>
<dd class="ddef">
<dl>
<dt class="decl">uint __val[1024 / (8 * uint.sizeof)] <a class="symbol _variable" name="sigset_t.__val" href="./htmlsrc/std.thread.html#L541" kind="variable" beg="541" end="541">__val</a>; <a title="Permalink to this symbol" href="#sigset_t.__val" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L541">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">auto <a class="symbol _variable" name="SA_RESTART" href="./htmlsrc/std.thread.html#L544" kind="variable" beg="544" end="544">SA_RESTART</a>; <span class="attrs">[<span class="stc">const</span>]</span> <a title="Permalink to this symbol" href="#SA_RESTART" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L544">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">struct <a class="symbol _struct" name="sigaction_t" href="./htmlsrc/std.thread.html#L546" kind="struct" beg="546" end="552">sigaction_t</a>; <a title="Permalink to this symbol" href="#sigaction_t" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L546">#</a></dt>
<dd class="ddef">
<dl>
<dt class="decl">__sighandler_t <a class="symbol _variable" name="sigaction_t.sa_handler" href="./htmlsrc/std.thread.html#L548" kind="variable" beg="548" end="548">sa_handler</a>; <a title="Permalink to this symbol" href="#sigaction_t.sa_handler" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L548">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">sigset_t <a class="symbol _variable" name="sigaction_t.sa_mask" href="./htmlsrc/std.thread.html#L549" kind="variable" beg="549" end="549">sa_mask</a>; <a title="Permalink to this symbol" href="#sigaction_t.sa_mask" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L549">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _variable" name="sigaction_t.sa_flags" href="./htmlsrc/std.thread.html#L550" kind="variable" beg="550" end="550">sa_flags</a>; <a title="Permalink to this symbol" href="#sigaction_t.sa_flags" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L550">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void (*sa_restorer)() <a class="symbol _variable" name="sigaction_t.sa_restorer" href="./htmlsrc/std.thread.html#L551" kind="variable" beg="551" end="551">sa_restorer</a>; <a title="Permalink to this symbol" href="#sigaction_t.sa_restorer" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L551">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">struct <a class="symbol _struct" name="pthread_attr_t" href="./htmlsrc/std.thread.html#L554" kind="struct" beg="554" end="568">pthread_attr_t</a>; <a title="Permalink to this symbol" href="#pthread_attr_t" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L554">#</a></dt>
<dd class="ddef">
<dl>
<dt class="decl">int <a class="symbol _variable" name="pthread_attr_t.__detachstate" href="./htmlsrc/std.thread.html#L556" kind="variable" beg="556" end="556">__detachstate</a>; <a title="Permalink to this symbol" href="#pthread_attr_t.__detachstate" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L556">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _variable" name="pthread_attr_t.__schedpolicy" href="./htmlsrc/std.thread.html#L557" kind="variable" beg="557" end="557">__schedpolicy</a>; <a title="Permalink to this symbol" href="#pthread_attr_t.__schedpolicy" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L557">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">struct <a class="symbol _struct" name="pthread_attr_t.__schedparam" href="./htmlsrc/std.thread.html#L558" kind="struct" beg="558" end="561">__schedparam</a>; <a title="Permalink to this symbol" href="#pthread_attr_t.__schedparam" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L558">#</a></dt>
<dd class="ddef">
<dl>
<dt class="decl">int <a class="symbol _variable" name="pthread_attr_t.__schedparam.__sched_priority" href="./htmlsrc/std.thread.html#L560" kind="variable" beg="560" end="560">__sched_priority</a>; <a title="Permalink to this symbol" href="#pthread_attr_t.__schedparam.__sched_priority" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L560">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">int <a class="symbol _variable" name="pthread_attr_t.__inheritsched" href="./htmlsrc/std.thread.html#L562" kind="variable" beg="562" end="562">__inheritsched</a>; <a title="Permalink to this symbol" href="#pthread_attr_t.__inheritsched" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L562">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _variable" name="pthread_attr_t.__scope" href="./htmlsrc/std.thread.html#L563" kind="variable" beg="563" end="563">__scope</a>; <a title="Permalink to this symbol" href="#pthread_attr_t.__scope" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L563">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">size_t <a class="symbol _variable" name="pthread_attr_t.__guardsize" href="./htmlsrc/std.thread.html#L564" kind="variable" beg="564" end="564">__guardsize</a>; <a title="Permalink to this symbol" href="#pthread_attr_t.__guardsize" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L564">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _variable" name="pthread_attr_t.__stackaddr_set" href="./htmlsrc/std.thread.html#L565" kind="variable" beg="565" end="565">__stackaddr_set</a>; <a title="Permalink to this symbol" href="#pthread_attr_t.__stackaddr_set" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L565">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void * <a class="symbol _variable" name="pthread_attr_t.__stackaddr" href="./htmlsrc/std.thread.html#L566" kind="variable" beg="566" end="566">__stackaddr</a>; <a title="Permalink to this symbol" href="#pthread_attr_t.__stackaddr" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L566">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">size_t <a class="symbol _variable" name="pthread_attr_t.__stacksize" href="./htmlsrc/std.thread.html#L567" kind="variable" beg="567" end="567">__stacksize</a>; <a title="Permalink to this symbol" href="#pthread_attr_t.__stacksize" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L567">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl"><a class="symbol _unittest" name="unittest" href="./htmlsrc/std.thread.html#L570" kind="unittest" beg="570" end="575">unittest</a>; <a title="Permalink to this symbol" href="#unittest" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L570">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="pthread_create" href="./htmlsrc/std.thread.html#L579" kind="function" beg="579" end="579">pthread_create</a><span class="params">(pthread_t*, void*, void* (*)(void*), void*)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#pthread_create" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L579">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="pthread_join" href="./htmlsrc/std.thread.html#L580" kind="function" beg="580" end="580">pthread_join</a><span class="params">(pthread_t, void**)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#pthread_join" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L580">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="pthread_kill" href="./htmlsrc/std.thread.html#L581" kind="function" beg="581" end="581">pthread_kill</a><span class="params">(pthread_t, int)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#pthread_kill" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L581">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">pthread_t <a class="symbol _function" name="pthread_self" href="./htmlsrc/std.thread.html#L582" kind="function" beg="582" end="582">pthread_self</a><span class="params">()</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#pthread_self" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L582">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="pthread_equal" href="./htmlsrc/std.thread.html#L583" kind="function" beg="583" end="583">pthread_equal</a><span class="params">(pthread_t, pthread_t)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#pthread_equal" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L583">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="pthread_attr_init" href="./htmlsrc/std.thread.html#L584" kind="function" beg="584" end="584">pthread_attr_init</a><span class="params">(pthread_attr_t*)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#pthread_attr_init" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L584">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="pthread_attr_setstacksize" href="./htmlsrc/std.thread.html#L585" kind="function" beg="585" end="585">pthread_attr_setstacksize</a><span class="params">(pthread_attr_t *, size_t)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#pthread_attr_setstacksize" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L585">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="pthread_cancel" href="./htmlsrc/std.thread.html#L586" kind="function" beg="586" end="586">pthread_cancel</a><span class="params">(pthread_t)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#pthread_cancel" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L586">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="pthread_setcancelstate" href="./htmlsrc/std.thread.html#L587" kind="function" beg="587" end="587">pthread_setcancelstate</a><span class="params">(int, int*)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#pthread_setcancelstate" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L587">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="pthread_setcanceltype" href="./htmlsrc/std.thread.html#L588" kind="function" beg="588" end="588">pthread_setcanceltype</a><span class="params">(int, int*)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#pthread_setcanceltype" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L588">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="sched_yield" href="./htmlsrc/std.thread.html#L589" kind="function" beg="589" end="589">sched_yield</a><span class="params">()</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#sched_yield" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L589">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="sigfillset" href="./htmlsrc/std.thread.html#L590" kind="function" beg="590" end="590">sigfillset</a><span class="params">(sigset_t*)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#sigfillset" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L590">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="sigdelset" href="./htmlsrc/std.thread.html#L591" kind="function" beg="591" end="591">sigdelset</a><span class="params">(sigset_t*, int)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#sigdelset" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L591">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="sigaction" href="./htmlsrc/std.thread.html#L592" kind="function" beg="592" end="592">sigaction</a><span class="params">(int, sigaction_t*, sigaction_t*)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#sigaction" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L592">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="sigsuspend" href="./htmlsrc/std.thread.html#L593" kind="function" beg="593" end="593">sigsuspend</a><span class="params">(sigset_t*)</span>; <span class="attrs">[<span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#sigsuspend" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L593">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enum" name="enum" href="./htmlsrc/std.thread.html#L595" kind="enum" beg="595" end="599">enum</a>; <a title="Permalink to this symbol" href="#enum" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L595">#</a></dt>
<dd class="ddef">
<dl>
<dt class="decl"><a class="symbol _enummem" name="enum.PTHREAD_CANCEL_ENABLE" href="./htmlsrc/std.thread.html#L597" kind="enummem" beg="597" end="597">PTHREAD_CANCEL_ENABLE</a> <a title="Permalink to this symbol" href="#enum.PTHREAD_CANCEL_ENABLE" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L597">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum.PTHREAD_CANCEL_DISABLE" href="./htmlsrc/std.thread.html#L598" kind="enummem" beg="598" end="598">PTHREAD_CANCEL_DISABLE</a> <a title="Permalink to this symbol" href="#enum.PTHREAD_CANCEL_DISABLE" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L598">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl"><a class="symbol _enum" name="enum:2" href="./htmlsrc/std.thread.html#L601" kind="enum" beg="601" end="605">enum</a>; <a title="Permalink to this symbol" href="#enum:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L601">#</a></dt>
<dd class="ddef">
<dl>
<dt class="decl"><a class="symbol _enummem" name="enum.PTHREAD_CANCEL_DEFERRED" href="./htmlsrc/std.thread.html#L603" kind="enummem" beg="603" end="603">PTHREAD_CANCEL_DEFERRED</a> <a title="Permalink to this symbol" href="#enum.PTHREAD_CANCEL_DEFERRED" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L603">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum.PTHREAD_CANCEL_ASYNCHRONOUS" href="./htmlsrc/std.thread.html#L604" kind="enummem" beg="604" end="604">PTHREAD_CANCEL_ASYNCHRONOUS</a> <a title="Permalink to this symbol" href="#enum.PTHREAD_CANCEL_ASYNCHRONOUS" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L604">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">class <a class="symbol _class" name="ThreadError" href="./htmlsrc/std.thread.html#L608" kind="class" beg="608" end="614">ThreadError</a> : Error; <a title="Permalink to this symbol" href="#ThreadError" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L608">#</a></dt>
<dd class="ddef">
<dl>
<dt class="decl"><a class="symbol _ctor" name="ThreadError.this" href="./htmlsrc/std.thread.html#L610" kind="ctor" beg="610" end="613">this</a><span class="params">(string <em>s</em>)</span>; <a title="Permalink to this symbol" href="#ThreadError.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L610">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">class <a class="symbol _class" name="Thread" href="./htmlsrc/std.thread.html#L616" kind="class" beg="616" end="1127">Thread</a>; <a title="Permalink to this symbol" href="#Thread" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L616">#</a></dt>
<dd class="ddef">
<dl>
<dt class="decl"><a class="symbol _ctor" name="Thread.this" href="./htmlsrc/std.thread.html#L620" kind="ctor" beg="620" end="623">this</a><span class="params">(size_t <em>stacksize</em> = 0)</span>; <a title="Permalink to this symbol" href="#Thread.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L620">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _ctor" name="Thread.this:2" href="./htmlsrc/std.thread.html#L625" kind="ctor" beg="625" end="630">this</a><span class="params">(int (*fp)(void *) <em>fp</em>, void * <em>arg</em>, size_t <em>stacksize</em> = 0)</span>; <a title="Permalink to this symbol" href="#Thread.this:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L625">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _ctor" name="Thread.this:3" href="./htmlsrc/std.thread.html#L632" kind="ctor" beg="632" end="636">this</a><span class="params">(int delegate() <em>dg</em>, size_t <em>stacksize</em> = 0)</span>; <a title="Permalink to this symbol" href="#Thread.this:3" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L632">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _dtor" name="Thread.~this" href="./htmlsrc/std.thread.html#L638" kind="dtor" beg="638" end="644">~this</a>(); <a title="Permalink to this symbol" href="#Thread.~this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L638">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">pthread_t <a class="symbol _variable" name="Thread.id" href="./htmlsrc/std.thread.html#L646" kind="variable" beg="646" end="646">id</a>; <a title="Permalink to this symbol" href="#Thread.id" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L646">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void* <a class="symbol _variable" name="Thread.stackBottom" href="./htmlsrc/std.thread.html#L647" kind="variable" beg="647" end="647">stackBottom</a>; <a title="Permalink to this symbol" href="#Thread.stackBottom" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L647">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void* <a class="symbol _variable" name="Thread.stackTop" href="./htmlsrc/std.thread.html#L648" kind="variable" beg="648" end="648">stackTop</a>; <a title="Permalink to this symbol" href="#Thread.stackTop" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L648">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Thread.start" href="./htmlsrc/std.thread.html#L650" kind="function" beg="650" end="684">start</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Thread.start" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L650">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="Thread.run" href="./htmlsrc/std.thread.html#L686" kind="function" beg="686" end="693">run</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Thread.run" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L686">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Thread.wait" href="./htmlsrc/std.thread.html#L695" kind="function" beg="695" end="709">wait</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Thread.wait" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L695">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Thread.wait:2" href="./htmlsrc/std.thread.html#L711" kind="function" beg="711" end="761">wait</a><span class="params">(uint <em>milliseconds</em>)</span>; <a title="Permalink to this symbol" href="#Thread.wait:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L711">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">enum <a class="symbol _enum" name="Thread.TS" href="./htmlsrc/std.thread.html#L763" kind="enum" beg="763" end="769">TS</a>; <a title="Permalink to this symbol" href="#Thread.TS" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L763">#</a></dt>
<dd class="ddef">
<dl>
<dt class="decl"><a class="symbol _enummem" name="Thread.TS.INITIAL" href="./htmlsrc/std.thread.html#L765" kind="enummem" beg="765" end="765">INITIAL</a> <a title="Permalink to this symbol" href="#Thread.TS.INITIAL" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L765">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="Thread.TS.RUNNING" href="./htmlsrc/std.thread.html#L766" kind="enummem" beg="766" end="766">RUNNING</a> <a title="Permalink to this symbol" href="#Thread.TS.RUNNING" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L766">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="Thread.TS.TERMINATED" href="./htmlsrc/std.thread.html#L767" kind="enummem" beg="767" end="767">TERMINATED</a> <a title="Permalink to this symbol" href="#Thread.TS.TERMINATED" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L767">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="Thread.TS.FINISHED" href="./htmlsrc/std.thread.html#L768" kind="enummem" beg="768" end="768">FINISHED</a> <a title="Permalink to this symbol" href="#Thread.TS.FINISHED" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L768">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">TS <a class="symbol _function" name="Thread.getState" href="./htmlsrc/std.thread.html#L771" kind="function" beg="771" end="774">getState</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Thread.getState" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L771">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">enum <a class="symbol _enum" name="Thread.PRIORITY" href="./htmlsrc/std.thread.html#L776" kind="enum" beg="776" end="782">PRIORITY</a>; <a title="Permalink to this symbol" href="#Thread.PRIORITY" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L776">#</a></dt>
<dd class="ddef">
<dl>
<dt class="decl"><a class="symbol _enummem" name="Thread.PRIORITY.INCREASE" href="./htmlsrc/std.thread.html#L778" kind="enummem" beg="778" end="778">INCREASE</a> <a title="Permalink to this symbol" href="#Thread.PRIORITY.INCREASE" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L778">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="Thread.PRIORITY.DECREASE" href="./htmlsrc/std.thread.html#L779" kind="enummem" beg="779" end="779">DECREASE</a> <a title="Permalink to this symbol" href="#Thread.PRIORITY.DECREASE" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L779">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="Thread.PRIORITY.IDLE" href="./htmlsrc/std.thread.html#L780" kind="enummem" beg="780" end="780">IDLE</a> <a title="Permalink to this symbol" href="#Thread.PRIORITY.IDLE" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L780">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="Thread.PRIORITY.CRITICAL" href="./htmlsrc/std.thread.html#L781" kind="enummem" beg="781" end="781">CRITICAL</a> <a title="Permalink to this symbol" href="#Thread.PRIORITY.CRITICAL" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L781">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">void <a class="symbol _function" name="Thread.setPriority" href="./htmlsrc/std.thread.html#L784" kind="function" beg="784" end="808">setPriority</a><span class="params">(PRIORITY <em>p</em>)</span>; <a title="Permalink to this symbol" href="#Thread.setPriority" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L784">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="Thread.isSelf" href="./htmlsrc/std.thread.html#L810" kind="function" beg="810" end="814">isSelf</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Thread.isSelf" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L810">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">Thread <a class="symbol _function" name="Thread.getThis" href="./htmlsrc/std.thread.html#L816" kind="function" beg="816" end="832">getThis</a><span class="params">()</span>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Thread.getThis" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L816">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">Thread[] <a class="symbol _function" name="Thread.getAll" href="./htmlsrc/std.thread.html#L834" kind="function" beg="834" end="837">getAll</a><span class="params">()</span>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Thread.getAll" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L834">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Thread.pause" href="./htmlsrc/std.thread.html#L839" kind="function" beg="839" end="850">pause</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Thread.pause" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L839">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Thread.resume" href="./htmlsrc/std.thread.html#L852" kind="function" beg="852" end="861">resume</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Thread.resume" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L852">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Thread.pauseAll" href="./htmlsrc/std.thread.html#L863" kind="function" beg="863" end="891">pauseAll</a><span class="params">()</span>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Thread.pauseAll" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L863">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Thread.resumeAll" href="./htmlsrc/std.thread.html#L893" kind="function" beg="893" end="909">resumeAll</a><span class="params">()</span>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Thread.resumeAll" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L893">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Thread.yield" href="./htmlsrc/std.thread.html#L911" kind="function" beg="911" end="914">yield</a><span class="params">()</span>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Thread.yield" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L911">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">uint <a class="symbol _variable" name="Thread.nthreads" href="./htmlsrc/std.thread.html#L916" kind="variable" beg="916" end="916">nthreads</a>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Thread.nthreads" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L916">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">uint <a class="symbol _variable" name="Thread.allThreadsDim" href="./htmlsrc/std.thread.html#L920" kind="variable" beg="920" end="920">allThreadsDim</a>; <span class="attrs">[<span class="prot">private</span>, <span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Thread.allThreadsDim" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L920">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">Thread[0x400] <a class="symbol _variable" name="Thread.allThreads" href="./htmlsrc/std.thread.html#L925" kind="variable" beg="925" end="925">allThreads</a>; <span class="attrs">[<span class="prot">private</span>, <span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Thread.allThreads" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L925">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">sem_t <a class="symbol _variable" name="Thread.flagSuspend" href="./htmlsrc/std.thread.html#L927" kind="variable" beg="927" end="927">flagSuspend</a>; <span class="attrs">[<span class="prot">private</span>, <span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Thread.flagSuspend" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L927">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">TS <a class="symbol _variable" name="Thread.state" href="./htmlsrc/std.thread.html#L929" kind="variable" beg="929" end="929">state</a>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#Thread.state" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L929">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _variable" name="Thread.idx" href="./htmlsrc/std.thread.html#L930" kind="variable" beg="930" end="930">idx</a>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#Thread.idx" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L930">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _variable" name="Thread.flags" href="./htmlsrc/std.thread.html#L931" kind="variable" beg="931" end="931">flags</a>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#Thread.flags" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L931">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">pthread_attr_t <a class="symbol _variable" name="Thread.threadAttrs" href="./htmlsrc/std.thread.html#L933" kind="variable" beg="933" end="933">threadAttrs</a>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#Thread.threadAttrs" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L933">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">pthread_mutex_t <a class="symbol _variable" name="Thread.waitMtx" href="./htmlsrc/std.thread.html#L934" kind="variable" beg="934" end="934">waitMtx</a>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#Thread.waitMtx" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L934">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">pthread_cond_t <a class="symbol _variable" name="Thread.waitCond" href="./htmlsrc/std.thread.html#L935" kind="variable" beg="935" end="935">waitCond</a>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#Thread.waitCond" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L935">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int (*fp)(void *) <a class="symbol _variable" name="Thread.fp" href="./htmlsrc/std.thread.html#L937" kind="variable" beg="937" end="937">fp</a>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#Thread.fp" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L937">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void * <a class="symbol _variable" name="Thread.arg" href="./htmlsrc/std.thread.html#L938" kind="variable" beg="938" end="938">arg</a>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#Thread.arg" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L938">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int delegate() <a class="symbol _variable" name="Thread.dg" href="./htmlsrc/std.thread.html#L940" kind="variable" beg="940" end="940">dg</a>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#Thread.dg" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L940">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Thread.error" href="./htmlsrc/std.thread.html#L942" kind="function" beg="942" end="945">error</a><span class="params">(string <em>msg</em>)</span>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#Thread.error" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L942">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Thread.init" href="./htmlsrc/std.thread.html#L947" kind="function" beg="947" end="964">init</a><span class="params">(size_t <em>stackSize</em>)</span>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#Thread.init" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L947">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void * <a class="symbol _function" name="Thread.threadstart" href="./htmlsrc/std.thread.html#L970" kind="function" beg="970" end="1003">threadstart</a><span class="params">(void * <em>p</em>)</span>; <span class="attrs">[<span class="prot">private</span>, <span class="stc">static</span>, <span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#Thread.threadstart" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L970">#</a></dt>
<dd class="ddef">
<div class="summary">This is just a wrapper to interface between C rtl and Thread.run().</div></dd>
<dt class="decl">void <a class="symbol _function" name="Thread.thread_init" href="./htmlsrc/std.thread.html#L1010" kind="function" beg="1010" end="1066">thread_init</a><span class="params">()</span>; <span class="attrs">[<span class="prot">public</span>, <span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Thread.thread_init" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L1010">#</a></dt>
<dd class="ddef">
<div class="summary">Create a Thread for global main().</div></dd>
<dt class="decl">void <a class="symbol _function" name="Thread.pauseHandler" href="./htmlsrc/std.thread.html#L1072" kind="function" beg="1072" end="1106">pauseHandler</a><span class="params">(int <em>sig</em>)</span>; <span class="attrs">[<span class="prot">private</span>, <span class="stc">static</span>, <span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#Thread.pauseHandler" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L1072">#</a></dt>
<dd class="ddef">
<div class="summary">This gets called when a thread gets SIGUSR1.</div></dd>
<dt class="decl">void <a class="symbol _function" name="Thread.resumeHandler" href="./htmlsrc/std.thread.html#L1112" kind="function" beg="1112" end="1117">resumeHandler</a><span class="params">(int <em>sig</em>)</span>; <span class="attrs">[<span class="prot">private</span>, <span class="stc">static</span>, <span class="linkg">extern(C)</span>]</span> <a title="Permalink to this symbol" href="#Thread.resumeHandler" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L1112">#</a></dt>
<dd class="ddef">
<div class="summary">This gets called when a thread gets SIGUSR2.</div></dd>
<dt class="decl">void* <a class="symbol _function" name="Thread.getESP" href="./htmlsrc/std.thread.html#L1119" kind="function" beg="1119" end="1126">getESP</a><span class="params">()</span>; <span class="attrs">[<span class="prot">public</span>, <span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Thread.getESP" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.thread.html#L1119">#</a></dt>
<dd class="ddef"></dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright © 1999-2008 by Digital Mars ®, All Rights Reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 03:40:12 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>